﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace Kira.Compiler.Bods
{
    [XmlElementMapping("DIDataflow")]
    public class DIDataflow : BodsInvokable
    {

        public IEnumerable<BodsTransform> Transforms
        {
            get
            {
                return this.GetElement("DITransforms").GetElements<BodsTransform>();
            }
        }

        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("--DIDataflow ").AppendLine(Name);
            foreach (var t in Transforms)
            {
                sb.Append(t.ToString());
            }
            return sb.ToString();
        }
    }
}
